package com.lujianfei.powersearch.ui.report.adapter

import androidx.databinding.ObservableArrayList
import com.lujianfei.powersearch.R
import com.lujianfei.powersearch.base.BaseDatabindingAdapter
import com.lujianfei.powersearch.databinding.AdapterReportItemBinding
import com.lujianfei.powersearch.ui.report.model.ReportItemModel

class ReportAdapter(items:ObservableArrayList<ReportItemModel>):BaseDatabindingAdapter<ReportItemModel, AdapterReportItemBinding>(items) {

    override fun getLayoutResId() = R.layout.adapter_report_item

    override fun onBindItem(
        binding: AdapterReportItemBinding?,
        bean: ReportItemModel,
        position: Int
    ) {
        binding?.model = bean
    }
}